-- GENERATED SPELL FOR [Ghostpaw Runner] --


function spell0_3823(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3823', 606, 1)
end

function spell1_3823(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3823', 0, 1)
end

function spell2_3823(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3823', 0, 1)
end

function Sorts_3823(pUnit, Event)
local choix_sorts_3823 = math.random(0, 2)
if choix_sorts_3823 == 0 then
pUnit:RegisterEvent('spell0_3823', 1, 1)
end
if choix_sorts_3823 == 1 then
pUnit:RegisterEvent('spell1_3823', 1, 1)
end
if choix_sorts_3823 == 2 then
pUnit:RegisterEvent('spell2_3823', 1, 1)
end
end

function mob3823_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3823', math.random(1500, 3000), 1)
end

function mob3823_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3823_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3823_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3823, 1, 'mob3823_Action')
RegisterUnitEvent(3823, 2, 'mob3823_Leave')
RegisterUnitEvent(3823, 3, 'mob3823_Kill')
RegisterUnitEvent(3823, 4, 'mob3823_Die')
